package com.symone.webcms.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.symone.webcms.model.Module;

import java.util.List;

/**
 *   @description : Module 服务接口
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2019-01-09
 */
public interface ModuleService extends IService<Module> {

    boolean insert(Module module);

    Page<Module> findPage(Page<Module> page, Wrapper<Module> module);

    List<Module> findAll();

    int delete(long id);

    boolean deleteFlagById(long id);

    int clear();

    boolean deleteRelation(Long id);

    int getRecordCount(Long id);

}
